import request from '@/utils/request'

// 查询养护抽检列表
export function listOnlyforchecker(query) {
  return request({
    url: '/system/onlyforchecker/list',
    method: 'get',
    params: query
  })
}

// 查询养护抽检详细
export function getOnlyforchecker(recordId) {
  return request({
    url: '/system/onlyforchecker/' + recordId,
    method: 'get'
  })
}

// 新增养护抽检
export function addOnlyforchecker(data) {
  return request({
    url: '/system/onlyforchecker',
    method: 'post',
    data: data
  })
}

// 修改养护抽检
export function updateOnlyforchecker(data) {
  return request({
    url: '/system/onlyforchecker',
    method: 'put',
    data: data
  })
}

// 删除养护抽检
export function delOnlyforchecker(recordId) {
  return request({
    url: '/system/onlyforchecker/' + recordId,
    method: 'delete'
  })
}
